import Layout from '@/layout';

const UserRouter = {
  path: '/user',
  component: Layout,
  redirect: {
    name: 'UserList'
  },
  children: [{
      path: 'list',
      name: 'UserList',
      component: () => import('@/pages/users/index'),
      meta: {
        title: '用户管理',
        icon: 'user',
        noCache: true,
        menuActive: '/user/list'
      }
    },
    {
      path: 'UserDetails',
      name: 'UserDetails',
      component: () => import('@/pages/users/userDetail/detail'),
      meta: {
        title: '用户详情',
        icon: 'user',
        noCache: true,
        menuActive: '/user/UserDetails'
      },
      hidden: true
    },
    {
      path: 'userActivity',
      name: 'userActivity',
      component: () => import('@/pages/users/userActivity/userActivity'),
      meta: {
        title: '用户活动',
        icon: 'user',
        noCache: true,
        menuActive: '/user/userActivity'
      },
      hidden: true
    },
    {
      path: 'userFans',
      name: 'userFans',
      component: () => import('@/pages/users/userFans/userFans'),
      meta: {
        title: '关注粉丝',
        icon: 'user',
        noCache: true,
        menuActive: '/user/userFans'
      },
      hidden: true
    },
    {
      path: 'userContact',
      name: 'userContact',
      component: () => import('@/pages/users/userContact/userContact'),
      meta: {
        title: '消息',
        icon: 'user',
        noCache: true,
        menuActive: '/user/userContact'
      },
      hidden: true
    },
    {
      path: 'userComment',
      name: 'userComment',
      component: () => import('@/pages/users/userComment/userComment'),
      meta: {
        title: '评论评价',
        icon: 'user',
        noCache: true,
        menuActive: '/user/userComment'
      },
      hidden: true
    }
  ]
};
export default UserRouter;
